package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

/**
 * @author wuJiaWei
 * @version 1.0
 */
public interface IUserService extends IService<User> {
    void deductBalanceById(Long userId, Integer money);

    List<User> queryUsers(UserQuery query);

    UserVO queryUserAndAddressById(Long userId);

    PageDTO<UserVO> queryUsersByPage(UserQuery query);
    //扩展自定义方法
}
